package com.tinywind.admin.common.config.shiro;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author liuxingyu01
 * @date 2022-03-20 12:56
 * @description shiro加密的盐
 **/
@Component
public class SaltConfig {

    /**
     * 盐
     */
    public static String salt;


    public static String getSalt() {
        return salt;
    }

    @Value("${hash.salt}")
    public void setSalt(String salt) {
        SaltConfig.salt = salt;
    }
}
